package com.zhongge.linkedqueue;

/**
 * @ClassName TestQueue
 * @Description TODO
 * @Author 笨忠
 * @Date 2025/8/24 19:59
 * @Version 1.0
 */
public class TestQueue {
    public static void main(String[] args) {
        MyQueue queue = new MyQueue();
        //入队
        queue.offer(10);
        queue.offer(20);
        queue.offer(30);

        System.out.println(queue.size());
        System.out.println("================");
        //出队
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println("=======================");
        System.out.println(queue.size());
        System.out.println(queue.isEmpty());
    }
}
